﻿@page "/line/smooth"
<Echarts Option="@option"></Echarts>
<div class="card">
    <div class="card-header">
        查看源代码
    </div>
    <div class="card-body">
        <pre>
            <code>
                private object option;

                protected override void OnInitialized()
                {

                option = new
                {
                Title = new { Text = "Smoothed Line Chart" },
                XAxis =
                new
                {
                Type = "category",
                Data = new string[] { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" }
                },
                YAxis = new { Type = "value" },
                Series = new object[] {
                new
                {
                Data =new double[]{820, 932, 901, 934, 1290, 1330, 1320 },
                Type = "line",
                Smooth=true
                }

                }
                };

                }
            </code>
</pre>
    </div>
</div>

@code{

    private object option;

    protected override void OnInitialized()
    {

        option = new
        {
            Title = new { Text = "Smoothed Line Chart" },
            XAxis =
            new
            {
                Type = "category",
                Data = new string[] { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" }
            },
            YAxis = new { Type = "value" },
            Series = new object[] {
                new
                {
                    Data =new double[]{820, 932, 901, 934, 1290, 1330, 1320 },
                   Type = "line",
                   Smooth=true
                }

           }
        };

    }

}